package 反射;

/**
 * @Author alicat.xu
 * @Date 2021/10/19 9:47 上午
 */
public class Person {

    private String name;
    public int age;


    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    public void show(){
        System.out.println("我是一个人 show");
    }

    private void show1(String name){
        System.out.println("我是一个人 show1 name= "+name);
    }

    public String getName() {
        return name;
    }

//    public void setName(String name) {
//        this.name = name;
//    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void setAge(int age) {
        this.age = age;
    }
}
